<?php

$arrObjBairro = $view->result;

$strHtml = "";
$strHtml .= '<option value="">Bairro</option>';
// Percorrendo os bairros
foreach($arrObjBairro as $objBairro){
    $strHtml .= '<option value="'.$objBairro->tid .'">'.$objBairro->taxonomy_term_data_name .'</option>';
}
echo json_encode($strHtml);
die;
?>